/*
 * Lab 9 Prelab 1
 * CSIS 248 Operating System Programming
 */
#include <stdio.h>
#define SIZE1 10
#define SIZE2 12
int main( ){
   char a[SIZE1] = "Hello";
   char b[SIZE2] = "CSIS 248";

   printf("a = %s\n", a );
   printf("b = %s\n", b );

   /* Print "a" with spaces */
   char c;
   int i = 0;
   for (i=0; i<SIZE1; i++){
      c = a[i];
      printf(" %c", c);
   }
   /* Print "b" with spaces */
   for (i=0; i<SIZE2; i++){
      c = b[i];
      printf(" %c", c);
   }
   printf("\n\n");
   
   /* Concatenate a and b */
   char x[SIZE1+SIZE2];
   for (i=0; i<SIZE1; i++)
      x[i] = a[i];
   int j;
   for (j=0; j<SIZE2; j++)
      x[i++] = b[j];
   printf("a and b concatenated = %s\n", x );
}
